package nz.ac.massey.cs.se400_2013.ass3.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import nz.ac.massey.cs.se400_2013.ass3.Course;

public class AddCourseHandler extends Handler{

	public AddCourseHandler(SideTree sideTree) {
		super(sideTree);
	}

	public void actionPerformed(ActionEvent e) {
		System.out.println("Add new Course instance to selected node.");
		Course newCourse = new Course();
		newCourse.setName("New Course");
		sideTree.addCourse(newCourse);
	}

}
